package nyist.media.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * @author dcf
 */
@Controller
public class PageController {

    @RequestMapping(value = "/page/{module}/{func}")
    public String page(@PathVariable String module, @PathVariable String func) {
        return module + "/" + func;
    }

    @RequestMapping(value = "/page/{module}/{pack}/{func}")
    public String pagePack(@PathVariable String module, @PathVariable String pack, @PathVariable String func) {
        return module + "/" + pack + "/" + func;
    }
}